\hypertarget{classguild__service_1_1_guild_service_basic}{}\doxysection{guild\+\_\+service\+::Guild\+Service\+Basic Class Reference}
\label{classguild__service_1_1_guild_service_basic}\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}


公会管理器类  




{\ttfamily \#include $<$guild\+\_\+service\+\_\+basic.\+h$>$}

\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a33aa629a444dd8de2184f619af125d96}\label{classguild__service_1_1_guild_service_basic_a33aa629a444dd8de2184f619af125d96}} 
using \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a33aa629a444dd8de2184f619af125d96}{Foreach\+Guild\+Callback\+Type}} = std\+::function$<$ void(const guild\+\_\+id\+\_\+type \&)$>$
\begin{DoxyCompactList}\small\item\em 遍历公会回调函数类型 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a27b7f5b5b4243911caddc09825eb8be3}\label{classguild__service_1_1_guild_service_basic_a27b7f5b5b4243911caddc09825eb8be3}} 
{\bfseries Guild\+Service\+Basic} (const \mbox{\hyperlink{classguild__service_1_1_guild_service_basic}{Guild\+Service\+Basic}} \&)=delete
\item 
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a14a2c710bed8c2e21c88b723c7dbbb91}\label{classguild__service_1_1_guild_service_basic_a14a2c710bed8c2e21c88b723c7dbbb91}} 
{\bfseries Guild\+Service\+Basic} (\mbox{\hyperlink{classguild__service_1_1_guild_service_basic}{Guild\+Service\+Basic}} \&\&)=delete
\item 
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a33eff226ca46aef1f85f4dcab2b59056}\label{classguild__service_1_1_guild_service_basic_a33eff226ca46aef1f85f4dcab2b59056}} 
const \mbox{\hyperlink{classguild__service_1_1_guild_service_basic}{Guild\+Service\+Basic}} \& {\bfseries operator=} (const \mbox{\hyperlink{classguild__service_1_1_guild_service_basic}{Guild\+Service\+Basic}} \&)=delete
\item 
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a1069915f8fb382f4123ae4874c7248a3}\label{classguild__service_1_1_guild_service_basic_a1069915f8fb382f4123ae4874c7248a3}} 
const \mbox{\hyperlink{classguild__service_1_1_guild_service_basic}{Guild\+Service\+Basic}} \& {\bfseries operator=} (\mbox{\hyperlink{classguild__service_1_1_guild_service_basic}{Guild\+Service\+Basic}} \&\&)=delete
\item 
guild\+\_\+id\+\_\+type \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_aec72559ab54e8cace8dae44dcdd12dd4}{Get\+Guild\+Id\+By\+Role}} (const role\+\_\+uuid\+\_\+type role\+\_\+uuid) const
\begin{DoxyCompactList}\small\item\em 根据角色唯一id获取公会id \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a53d4fc0508135f7e04de12f5208c4aef}{Add\+Guild}} (const guild\+\_\+id\+\_\+type \&guild\+\_\+id)
\begin{DoxyCompactList}\small\item\em 添加公会 \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a17bd47b1a19ca7cc53b59d11fc2b1fb5}{Remove\+Guild}} (const guild\+\_\+id\+\_\+type guild\+\_\+id)
\begin{DoxyCompactList}\small\item\em 移除公会 \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a9e7e1ac5c3b623bfca3dace697454352}{Add\+Guild\+Role}} (const guild\+\_\+id\+\_\+type guild\+\_\+id, const role\+\_\+uuid\+\_\+type role\+\_\+uuid)
\begin{DoxyCompactList}\small\item\em 添加角色到公会id的映射 \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a38e88a3e956116c2d8e6035d2b489209}{Remove\+Guild\+Role}} (const guild\+\_\+id\+\_\+type guild\+\_\+id, const role\+\_\+uuid\+\_\+type role\+\_\+uuid)
\begin{DoxyCompactList}\small\item\em 移除角色到公会id的映射 \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a5d1e52122e505730c60e1958620f0319}{Foreach\+Guild}} (const \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a33aa629a444dd8de2184f619af125d96}{Foreach\+Guild\+Callback\+Type}} \&callback)
\begin{DoxyCompactList}\small\item\em 遍历所有公会 \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_ace03a702277cd013c7c2037ba07e5dbd}{Load\+Guild\+Async}} ()
\begin{DoxyCompactList}\small\item\em 异步加载公会 \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a3beaec72abce51ff851201fadce9a73a}{In\+Same\+Guild}} (const role\+\_\+uuid\+\_\+type role\+\_\+uuid1, const role\+\_\+uuid\+\_\+type role\+\_\+uuid2)
\begin{DoxyCompactList}\small\item\em 是否是同一个公会 \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a6c35dac6b5461cb3ede679e693016d0c}{Has\+Guild}} (const role\+\_\+uuid\+\_\+type role\+\_\+uuid) const
\begin{DoxyCompactList}\small\item\em 是否有公会 \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a9ade838b64cc4b6782e267255a022116}{Is\+Guild\+Name\+Existed}} (const std\+::string \&name) const
\begin{DoxyCompactList}\small\item\em 公会总数量 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_aa3cf09927644b2c17a705ddcab28003e}{Incr\+Guild\+Last\+Id}} (guild\+\_\+id\+\_\+type \&guild\+\_\+id)
\begin{DoxyCompactList}\small\item\em 同步递增公会id \end{DoxyCompactList}\item 
static bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a74d346081ed5b31b0920a027eafff85d}{Delete\+Guild\+To\+Redis}} (const guild\+\_\+id\+\_\+type guild\+\_\+id)
\begin{DoxyCompactList}\small\item\em 同步删除公会 \end{DoxyCompactList}\item 
static bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a4cc90fc8cc9c9176ee947041128b17fb}{Delete\+Guild\+Module\+To\+Redis}} (const Guild \&guild, const std\+::string \&module\+\_\+name)
\begin{DoxyCompactList}\small\item\em 同步删除公会模块 \end{DoxyCompactList}\item 
static bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a62d92bbe3fb817001683692ba7f41e60}{Save\+Guild\+Role\+To\+Redis}} (const std\+::string \&op, const role\+\_\+uuid\+\_\+type role\+\_\+uuid, const guild\+\_\+id\+\_\+type guild\+\_\+id)
\begin{DoxyCompactList}\small\item\em 同步保存公会角色 \end{DoxyCompactList}\item 
static bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a5c88f358230387be0aaaf69e9bab9150}{Save\+Last\+Guild\+Id\+To\+Redis}} (const guild\+\_\+id\+\_\+type guild\+\_\+id)
\begin{DoxyCompactList}\small\item\em 保存最后创建的公会id \end{DoxyCompactList}\item 
static Guild \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_aac9e051e9b5c212a6cc7e1f7666e4314}{New\+Guild}} (const guild\+\_\+id\+\_\+type guild\+\_\+id=0ull)
\begin{DoxyCompactList}\small\item\em 构造一个公会 \end{DoxyCompactList}\item 
static bool \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_af7755f60ce4b6847a6ee70841aecb06b}{Is\+Valid\+Guild}} (const Guild \&guild)
\begin{DoxyCompactList}\small\item\em 公会是否合法 \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
公会管理器类 

提供id索引，删除、添加等功能 

\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a53d4fc0508135f7e04de12f5208c4aef}\label{classguild__service_1_1_guild_service_basic_a53d4fc0508135f7e04de12f5208c4aef}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!AddGuild@{AddGuild}}
\index{AddGuild@{AddGuild}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{AddGuild()}{AddGuild()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Add\+Guild (\begin{DoxyParamCaption}\item[{const guild\+\_\+id\+\_\+type \&}]{guild\+\_\+id }\end{DoxyParamCaption})}



添加公会 


\begin{DoxyParams}{Parameters}
{\em guild\+\_\+id} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 

false 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a9e7e1ac5c3b623bfca3dace697454352}\label{classguild__service_1_1_guild_service_basic_a9e7e1ac5c3b623bfca3dace697454352}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!AddGuildRole@{AddGuildRole}}
\index{AddGuildRole@{AddGuildRole}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{AddGuildRole()}{AddGuildRole()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Add\+Guild\+Role (\begin{DoxyParamCaption}\item[{const guild\+\_\+id\+\_\+type}]{guild\+\_\+id,  }\item[{const role\+\_\+uuid\+\_\+type}]{role\+\_\+uuid }\end{DoxyParamCaption})}



添加角色到公会id的映射 


\begin{DoxyParams}{Parameters}
{\em role\+\_\+uuid} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 

false 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a4cc90fc8cc9c9176ee947041128b17fb}\label{classguild__service_1_1_guild_service_basic_a4cc90fc8cc9c9176ee947041128b17fb}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!DeleteGuildModuleToRedis@{DeleteGuildModuleToRedis}}
\index{DeleteGuildModuleToRedis@{DeleteGuildModuleToRedis}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{DeleteGuildModuleToRedis()}{DeleteGuildModuleToRedis()}}
{\footnotesize\ttfamily static bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Delete\+Guild\+Module\+To\+Redis (\begin{DoxyParamCaption}\item[{const Guild \&}]{guild,  }\item[{const std\+::string \&}]{module\+\_\+name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



同步删除公会模块 


\begin{DoxyTemplParams}{Template Parameters}
{\em Serializer} & 模块序列化类模板 \\
\hline
\end{DoxyTemplParams}

\begin{DoxyParams}{Parameters}
{\em guild} & 公会 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 

false 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a74d346081ed5b31b0920a027eafff85d}\label{classguild__service_1_1_guild_service_basic_a74d346081ed5b31b0920a027eafff85d}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!DeleteGuildToRedis@{DeleteGuildToRedis}}
\index{DeleteGuildToRedis@{DeleteGuildToRedis}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{DeleteGuildToRedis()}{DeleteGuildToRedis()}}
{\footnotesize\ttfamily static bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Delete\+Guild\+To\+Redis (\begin{DoxyParamCaption}\item[{const guild\+\_\+id\+\_\+type}]{guild\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



同步删除公会 


\begin{DoxyParams}{Parameters}
{\em guild} & 公会 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 

false 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a5d1e52122e505730c60e1958620f0319}\label{classguild__service_1_1_guild_service_basic_a5d1e52122e505730c60e1958620f0319}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!ForeachGuild@{ForeachGuild}}
\index{ForeachGuild@{ForeachGuild}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{ForeachGuild()}{ForeachGuild()}}
{\footnotesize\ttfamily void guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Foreach\+Guild (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classguild__service_1_1_guild_service_basic_a33aa629a444dd8de2184f619af125d96}{Foreach\+Guild\+Callback\+Type}} \&}]{callback }\end{DoxyParamCaption})}



遍历所有公会 


\begin{DoxyParams}{Parameters}
{\em callback} & \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_aec72559ab54e8cace8dae44dcdd12dd4}\label{classguild__service_1_1_guild_service_basic_aec72559ab54e8cace8dae44dcdd12dd4}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!GetGuildIdByRole@{GetGuildIdByRole}}
\index{GetGuildIdByRole@{GetGuildIdByRole}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{GetGuildIdByRole()}{GetGuildIdByRole()}}
{\footnotesize\ttfamily guild\+\_\+id\+\_\+type guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Get\+Guild\+Id\+By\+Role (\begin{DoxyParamCaption}\item[{const role\+\_\+uuid\+\_\+type}]{role\+\_\+uuid }\end{DoxyParamCaption}) const}



根据角色唯一id获取公会id 


\begin{DoxyParams}{Parameters}
{\em role\+\_\+uuid} & 角色唯一id \\
\hline
{\em guild\+\_\+id} & 公会id \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 获取成功 

false 获取失败 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a6c35dac6b5461cb3ede679e693016d0c}\label{classguild__service_1_1_guild_service_basic_a6c35dac6b5461cb3ede679e693016d0c}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!HasGuild@{HasGuild}}
\index{HasGuild@{HasGuild}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{HasGuild()}{HasGuild()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Has\+Guild (\begin{DoxyParamCaption}\item[{const role\+\_\+uuid\+\_\+type}]{role\+\_\+uuid }\end{DoxyParamCaption}) const}



是否有公会 


\begin{DoxyParams}{Parameters}
{\em role\+\_\+uuid} & 角色唯一id \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
是否有公会 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_aa3cf09927644b2c17a705ddcab28003e}\label{classguild__service_1_1_guild_service_basic_aa3cf09927644b2c17a705ddcab28003e}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!IncrGuildLastId@{IncrGuildLastId}}
\index{IncrGuildLastId@{IncrGuildLastId}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{IncrGuildLastId()}{IncrGuildLastId()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Incr\+Guild\+Last\+Id (\begin{DoxyParamCaption}\item[{guild\+\_\+id\+\_\+type \&}]{guild\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



同步递增公会id 


\begin{DoxyParams}{Parameters}
{\em guild\+\_\+id} & 公会id \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 递增成功 

false 递增失败 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a3beaec72abce51ff851201fadce9a73a}\label{classguild__service_1_1_guild_service_basic_a3beaec72abce51ff851201fadce9a73a}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!InSameGuild@{InSameGuild}}
\index{InSameGuild@{InSameGuild}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{InSameGuild()}{InSameGuild()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+In\+Same\+Guild (\begin{DoxyParamCaption}\item[{const role\+\_\+uuid\+\_\+type}]{role\+\_\+uuid1,  }\item[{const role\+\_\+uuid\+\_\+type}]{role\+\_\+uuid2 }\end{DoxyParamCaption})}



是否是同一个公会 


\begin{DoxyParams}{Parameters}
{\em role\+\_\+uuid1} & \\
\hline
{\em role\+\_\+uuid2} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 

false 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a9ade838b64cc4b6782e267255a022116}\label{classguild__service_1_1_guild_service_basic_a9ade838b64cc4b6782e267255a022116}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!IsGuildNameExisted@{IsGuildNameExisted}}
\index{IsGuildNameExisted@{IsGuildNameExisted}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{IsGuildNameExisted()}{IsGuildNameExisted()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Is\+Guild\+Name\+Existed (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{name }\end{DoxyParamCaption}) const}



公会总数量 

\begin{DoxyReturn}{Returns}
std\+::size\+\_\+t
\end{DoxyReturn}
公会名字是否存在


\begin{DoxyParams}{Parameters}
{\em name} & 公会名字 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 公会名字存在 

false 公会名字不存在 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_af7755f60ce4b6847a6ee70841aecb06b}\label{classguild__service_1_1_guild_service_basic_af7755f60ce4b6847a6ee70841aecb06b}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!IsValidGuild@{IsValidGuild}}
\index{IsValidGuild@{IsValidGuild}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{IsValidGuild()}{IsValidGuild()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Is\+Valid\+Guild (\begin{DoxyParamCaption}\item[{const Guild \&}]{guild }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



公会是否合法 


\begin{DoxyParams}{Parameters}
{\em guild} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 

false 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_ace03a702277cd013c7c2037ba07e5dbd}\label{classguild__service_1_1_guild_service_basic_ace03a702277cd013c7c2037ba07e5dbd}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!LoadGuildAsync@{LoadGuildAsync}}
\index{LoadGuildAsync@{LoadGuildAsync}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{LoadGuildAsync()}{LoadGuildAsync()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Load\+Guild\+Async (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



异步加载公会 

\begin{DoxyReturn}{Returns}
true 

false 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_aac9e051e9b5c212a6cc7e1f7666e4314}\label{classguild__service_1_1_guild_service_basic_aac9e051e9b5c212a6cc7e1f7666e4314}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!NewGuild@{NewGuild}}
\index{NewGuild@{NewGuild}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{NewGuild()}{NewGuild()}}
{\footnotesize\ttfamily Guild guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+New\+Guild (\begin{DoxyParamCaption}\item[{const guild\+\_\+id\+\_\+type}]{guild\+\_\+id = {\ttfamily 0ull} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



构造一个公会 


\begin{DoxyParams}{Parameters}
{\em guild\+\_\+id} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Guild 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a17bd47b1a19ca7cc53b59d11fc2b1fb5}\label{classguild__service_1_1_guild_service_basic_a17bd47b1a19ca7cc53b59d11fc2b1fb5}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!RemoveGuild@{RemoveGuild}}
\index{RemoveGuild@{RemoveGuild}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{RemoveGuild()}{RemoveGuild()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Remove\+Guild (\begin{DoxyParamCaption}\item[{const guild\+\_\+id\+\_\+type}]{guild\+\_\+id }\end{DoxyParamCaption})}



移除公会 


\begin{DoxyParams}{Parameters}
{\em guild\+\_\+id} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 

false 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a38e88a3e956116c2d8e6035d2b489209}\label{classguild__service_1_1_guild_service_basic_a38e88a3e956116c2d8e6035d2b489209}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!RemoveGuildRole@{RemoveGuildRole}}
\index{RemoveGuildRole@{RemoveGuildRole}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{RemoveGuildRole()}{RemoveGuildRole()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Remove\+Guild\+Role (\begin{DoxyParamCaption}\item[{const guild\+\_\+id\+\_\+type}]{guild\+\_\+id,  }\item[{const role\+\_\+uuid\+\_\+type}]{role\+\_\+uuid }\end{DoxyParamCaption})}



移除角色到公会id的映射 


\begin{DoxyParams}{Parameters}
{\em guild\+\_\+id} & \\
\hline
{\em role\+\_\+uuid} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 

false 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a62d92bbe3fb817001683692ba7f41e60}\label{classguild__service_1_1_guild_service_basic_a62d92bbe3fb817001683692ba7f41e60}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!SaveGuildRoleToRedis@{SaveGuildRoleToRedis}}
\index{SaveGuildRoleToRedis@{SaveGuildRoleToRedis}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{SaveGuildRoleToRedis()}{SaveGuildRoleToRedis()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Save\+Guild\+Role\+To\+Redis (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{op,  }\item[{const role\+\_\+uuid\+\_\+type}]{role\+\_\+uuid,  }\item[{const guild\+\_\+id\+\_\+type}]{guild\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



同步保存公会角色 


\begin{DoxyParams}{Parameters}
{\em op} & redis操作 \\
\hline
{\em role\+\_\+uuid} & 角色唯一id \\
\hline
{\em guild\+\_\+id} & 公会id \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 保存成功 

false 保存失败 
\end{DoxyReturn}
\mbox{\Hypertarget{classguild__service_1_1_guild_service_basic_a5c88f358230387be0aaaf69e9bab9150}\label{classguild__service_1_1_guild_service_basic_a5c88f358230387be0aaaf69e9bab9150}} 
\index{guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}!SaveLastGuildIdToRedis@{SaveLastGuildIdToRedis}}
\index{SaveLastGuildIdToRedis@{SaveLastGuildIdToRedis}!guild\_service::GuildServiceBasic@{guild\_service::GuildServiceBasic}}
\doxysubsubsection{\texorpdfstring{SaveLastGuildIdToRedis()}{SaveLastGuildIdToRedis()}}
{\footnotesize\ttfamily bool guild\+\_\+service\+::\+Guild\+Service\+Basic\+::\+Save\+Last\+Guild\+Id\+To\+Redis (\begin{DoxyParamCaption}\item[{const guild\+\_\+id\+\_\+type}]{guild\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



保存最后创建的公会id 


\begin{DoxyParams}{Parameters}
{\em guild\+\_\+id} & 公会id \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true 保存成功 

false 保存失败 
\end{DoxyReturn}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
guildservicebasic/\mbox{\hyperlink{guild__service__basic_8h}{guild\+\_\+service\+\_\+basic.\+h}}\item 
guildservicebasic/guild\+\_\+service\+\_\+basic.\+cpp\end{DoxyCompactItemize}
